package cn.gqr.service;

import cn.gqr.entity.Book;
import cn.gqr.entity.Largefile;
import cn.gqr.entity.NewBook;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface BookService {

    //全查询
    List<NewBook> findAll();

    //id查询
    NewBook findById(int id);

    //书本的添加或者修改
    Map<String,Object> bookAddOrUpd(NewBook book, MultipartFile file, Largefile largefile);

    //分页查询
    List<NewBook> findByPage(int start, int num);

    //总行数
    int findByLine();

}
